.CONVERT HEX PR TO NUM
This subroutine converts a hex pair of alpha characters to a decimal number.
Usage:
Description:
This subroutine converts a hex pair of alpha characters to a decimal number. Both parameters are required, the subroutine will CANCEL if they are not PASSed.
<decimal_number> returns decimal value of <hex_pair> (Required). This must be PASSed with Share "Y" to return the value.
<hex_pair> is the hex pair you want converted to decimal (Required). This must contain exactly 2 characters that are in the range of 00-FF.
To convert a decimal number to a hex pair, see .CONVERT NUM TO HEX PR. To convert a string to hexidecimal, see .CONVERT BYTES TO HEX.
|